For instance, you could use the code in Listing 14 to achieve an effect similar to that shown in Listing 13; this time, all CDs are iterated over, and a Boolean XPath expression is applied.
比如,可使用清单14中的代码来实现和清单13类似的效果,这一次在迭代全部CD的过程中使用了xpath布尔表达式。
In this example, the code block is iterated until the loop is broken through the condition.
在此示例中,代码块迭代,直至循环根据条件而中断。
Once the code has iterated over all the elements in the tuple, it enters the else clause of the for loop, which prints out the value of the count variable.
一旦代码已经迭代了tuple中的所有元素,它将进入for循环的else子句,打印count变量的值。
应用推荐